Visual Labs — Python & Algorithms

179 words
1 min read
2026-03-15
View

Python — Interactive Visual Labs

Master Pythonic thinking by manipulating logic in real-time. Use these tools to build intuition for memory, patterns, and complexity.

1. Sorting Algorithm Visualizer

Understanding Time Complexity (OO notation) is easier when you see it in motion. Watch how elements swap and compare.

Interactive Simulation

Bubble Sort Algorithm

45
12
89
33
67
21
95
10
54
78
Comparing
Swapping
Sorted
Tip
Bubble Sort has a worst-case complexity of O(n2)O(n^2). Notice how the largest elements "bubble" to the end with each pass.

2. Regex Pattern Matching

Regular Expressions are powerful but can be cryptic. Use this sandbox to test your patterns against real text before implementing them in re.search() or re.findall().

Regex Sandbox

Python & Algorithmic Pattern Matching

0 Matches
/
/g
The quick brown fox jumps over the lazy dog 123.
\dAny Digit
[a-z]Lower Range
+1 or more
^...$Start/End
Important
Common Python Patterns:
  • \d+ : Matches one or more digits.
  • [a-zA-Z]+ : Matches words.
  • ^...$ : Anchors the match to the start and end of the string.

Abstract
Why Visualise? Coding is the art of translating mental models into syntax. These labs help you verify your mental models so the syntax becomes second nature.

Backlinks

0 References

No inbound references detected.

Document Outline
Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.